package org.codefinger.dao.impl;

import org.codefinger.dao.impl.sql.Expression;

public class ExpressionColumnCache implements ColumnCache {

	private Expression	exp;

	private String		alias;

	private String		name;

	public ExpressionColumnCache(String name, String alias, Expression exp) {
		super();
		this.exp = exp;
		this.name = name;
		this.alias = alias;
	}

	@Override
	public void resolveColumn(QueryBuilder builder) {
		builder.addColumnItem(exp, alias, name);
	}

}
